<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>年级</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        li {
            list-style: none;
        }

        .header, .content {
            display: flex;
        }

        #grade li.l1 {
            width: 20%;
            border: 1px dashed gray;
        }

        #grade li.l2 {
            width: 50%;
            border: 1px dashed gray;
        }
    </style>
</head>
<body>
<div id="grade">
    <ul class="header">
        <li class="l1">年级编号</li>
        <li class="l2">年级名称</li>
        <li class="l1">Action</li>
    </ul>
    <c:forEach items="${grades}" var="g">
        <ul class="content">
            <li class="l1">${g.id}
            </li>
            <li class="l2">${g.gname}
            </li>
            <li class="l1">
                <a href="#">修改</a>
                <a href="#">删除</a>
            </li>
        </ul>
    </c:forEach>
</div>
</body>
</html>
